package com.lp.mgt.mappers;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.lp.mgt.entities.Post;
import com.lp.mgt.entities.User;

@Mapper
public interface PostMapper {

	List<Post> getPostsByDeptId(String deptId);

	 void removePostByUserId(String uid);

	List<User> listPostsWithTerms(Post post);

	void savePost(Post post);

	void savePostAndDept(Post post);

	void removePostAndDeptByPostId(String postId);

	void removePostByPostId(String postId);

	void removePostAndUserByPostId(String postId);

	void editPost(Post post);

	void removePostByDeptId(String deptId);

}
